﻿using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Text;

namespace Ession.OCR
{
    public abstract class ImageProcessor
    {
        public abstract void ProcessImage(Bitmap bmp);
        /// <summary>
        ///     两个corlor相等
        /// </summary>
        /// <param name="i" type="int">
        ///     <para>
        ///         
        ///     </para>
        /// </param>
        /// <param name="j" type="int">
        ///     <para>
        ///         
        ///     </para>
        /// </param>
        /// <returns>
        ///     A bool value...
        /// </returns>
        public static bool EqualsCorlor(int i, int j)
        {
            return (i - j) < EqualsCorlorDelta;
        }

        private static int equalsCorlorDelta = 10;

        public static int EqualsCorlorDelta
        {
            get { return equalsCorlorDelta; }
            set { equalsCorlorDelta = value; }
        }
    }
}
